package cn.kgc.day03.service.impl;

import cn.kgc.day03.dao.StudentDao;
import cn.kgc.day03.dao.impl.StudentDaoImpl;
import cn.kgc.day03.entity.Student;
import cn.kgc.day03.service.StudentService;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/10/10
 * @description
 */
public class StudentServiceImpl implements StudentService {

    private StudentDao studentDao = new StudentDaoImpl();

    @Override
    public List<Student> getStudents() {

        return studentDao.studentList();
    }
}
